<html>
<head>
<title>Test</title>
</head>
<body>
Test
<?php

echo "1";

$con = mysql_connect('drdoc2.cfcbem1draxy.us-east-1.rds.amazonaws.com:3306', 'DrDocRoot', 'DrDoc5m4ll');

echo "2";


if (!$con) {
	 die ('Could not connect to mySQL database');
}
echo 'Connected to host<br />';



$mysql = "DrDocSmall";


if (!mysql_select_db($mysql)) {
	die ('Could not connect to mySQL database');
}
	echo 'Connected to database<br />';

echo "<br /><br /><br />";

/* INSERT INTO  DATABASE test*/
$sql = "INSERT INTO test (here)
VALUES
('$_POST[name]')";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record (" . $_POST[name]  . ") added";


/* END */





mysql_close($con);
?>
<br><br>end
</body>
</html>
